package com.loukou.lkt.lkt.enums;

public enum AllocationOrderStateEnum {
	TYPE_NnCheck(0,"未审核"),
	TYPE_Checked(1,"已审核"),
	TYPE_NoticeOut(2, "已通知发货仓库"),
	TYPE_Out(3, "已发货"),
	TYPE_NoticeIn(4, "已通知收货仓库"),
	TYPE_In(5, "已收货"),
	TYPE_Delete(6,"已取消");
	
	private int id;
	private String name;
	private AllocationOrderStateEnum(int id, String name) {
		this.id = id;
		this.name = name;
	}
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static AllocationOrderStateEnum parseOrderStateEnum(int id) {
		for (AllocationOrderStateEnum typeEnum : AllocationOrderStateEnum.values()) {
			if(typeEnum.id == id){
				return typeEnum;
			}
		}
		return TYPE_Checked;
	}
}
